package com.yiya.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.yiya.bean.OrderInfo;
import com.yiya.model.OrderInfoCplex;
import com.yiya.model.OrderInfoCplexModel;
import com.yiya.model.OrderInfoExample;

public interface OrderInfoMapper {
    int countByExample(OrderInfoExample example);

    int deleteByExample(OrderInfoExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(OrderInfo record);

    int insertSelective(OrderInfo record);

    List<OrderInfo> selectByExample(OrderInfoExample example);

    OrderInfo selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") OrderInfo record, @Param("example") OrderInfoExample example);

    int updateByExample(@Param("record") OrderInfo record, @Param("example") OrderInfoExample example);

    int updateByPrimaryKeySelective(OrderInfo record);

    int updateByPrimaryKey(OrderInfo record);
    
    List<OrderInfoCplex> selectByModel(OrderInfoCplexModel record);

	int countByModel(OrderInfoCplexModel record);
	
	List<OrderInfoCplex> selectAllByModel(OrderInfoCplexModel record);
}